<?php

	class Data_Model_KhoaHoc extends Data_Model_DomainObjectAbstract{
		
		private $_makhoahoc = null;
		private $_tenkhoahoc = null;
		private $_malop = null;
		private $_ngaykhaigiang = null;
		private $_magiaovien = null;
		private $_trangthai = null;
		private $_chitietkhoahoc = array();
		private $_giaovien = array();
		private $_lophoc = array();
		private $_kythi =  array();
		
		

		/**
	 * @return the $_makhoahoc
	 */
	public function getMakhoahoc() {
		return $this->_makhoahoc;
	}

		/**
	 * @param NULL $_makhoahoc
	 */
	public function setMakhoahoc($makhoahoc) {
		$this->_makhoahoc = $makhoahoc;
	}

	/**
	 * @return the $_tenkhoahoc
	 */
	public function getTenkhoahoc() {
		return $this->_tenkhoahoc;
	}

		/**
	 * @param NULL $_tenkhoahoc
	 */
	public function setTenkhoahoc($tenkhoahoc) {
		$this->_tenkhoahoc = $tenkhoahoc;
	}

	/**
	 * @return the $_malop
	 */
	public function getMalop() {
		return $this->_malop;
	}

		/**
	 * @param NULL $_malop
	 */
	public function setMalop($malop) {
		$this->_malop = $malop;
	}

		/**
	 * @return the $_ngaykhaigiang
	 */
	public function getNgaykhaigiang() {
		return $this->_ngaykhaigiang;
	}
	
	public function getDate() {
		return new Zend_Date($this->_ngaykhaigiang,'dd-MM-yyyy');
	}

		/**
	 * @param NULL $_ngaykhaigiang
	 */
	public function setNgaykhaigiang($ngaykhaigiang) {
		$this->_ngaykhaigiang = $ngaykhaigiang;
	}

	/**
	 * @return the $_magiaovien
	 */
	public function getMagiaovien() {
		return $this->_magiaovien;
	}
	
	/**
	 * @param NULL $_magiaovien
	 */
	public function setMagiaovien($magiaovien) {
		$this->_magiaovien = $magiaovien;
	}
	/**
	 * @return the $_chitietkhoahoc
	 */
	public function getChitietkhoahoc() {
		return $this->_chitietkhoahoc;
	}

	/**
	 * @param NULL $_chitietkhoahoc
	 */
	public function setChitietkhoahoc($chitietkhoahoc) {
		$this->_chitietkhoahoc = $chitietkhoahoc;
	}
	/**
	 * @return the $_giaovien
	 */
	public function getGiaovien() {
		return $this->_giaovien;
	}

	/**
	 * @param multitype: $_giaovien
	 */
	public function setGiaovien($giaovien) {
		$this->_giaovien = $giaovien;
	}

	/**
	 * @return the $_lophoc
	 */
	public function getLophoc() {
		return $this->_lophoc;
	}

	/**
	 * @param multitype: $_lophoc
	 */
	public function setLophoc($lophoc) {
		$this->_lophoc = $lophoc;
	}
	/**
	 * @return the $_trangthai
	 */
	public function getTrangthai() {
		return $this->_trangthai;
	}
	public function getTrangthaikhoahoc() {
		
		if($this->_trangthai == 1)
		{
			$this->_trangthai = 'Mở';
		}
		else
		{
			$this->_trangthai = 'Khóa';
		}
		return $this->_trangthai;
	}

	/**
	 * @param NULL $_trangthai
	 */
	public function setTrangthai($trangthai) {
		$this->_trangthai = $trangthai;
	}
	/**
	 * @return the $_kythi
	 */
	public function getKythi() {
		return $this->_kythi;
	}

	/**
	 * @param multitype: $_kythi
	 */
	public function setKythi($kythi) {
		$this->_kythi = $kythi;
	}

		
	}